package sw.mylife.db;

import java.util.List;



public class Category {
	
	//Attribute
	private long id;
	private String name;
	private double weight;
	private boolean isActive;
	private boolean questionsAreRelative;
	private List<Scale> scaleList;
	
	
	public Category(){
		
	}
	public Category(int id, String name, double weight, boolean isActive,
			boolean questionsAreRelative, List<Scale> scaleList) {
		super();
		this.id = id;
		this.name = name;
		this.weight = weight;
		this.isActive = isActive;
		this.questionsAreRelative = questionsAreRelative;
		this.scaleList = scaleList;
	}
	public Category(int id, String name, double weight, boolean isActive,
			boolean questionsAreRelative) {
		super();
		this.id = id;
		this.name = name;
		this.weight = weight;
		this.isActive = isActive;
		this.questionsAreRelative = questionsAreRelative;
	
	}
	public List<Scale> getScaleList() {
		return scaleList;
	}

	public void setScaleList(List<Scale> scaleList) {
		this.scaleList = scaleList;
	}
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public boolean isQuestionsAreRelative() {
		return questionsAreRelative;
	}

	public void setQuestionsAreRelative(boolean questionsAreRelative) {
		this.questionsAreRelative = questionsAreRelative;
	}
	
	public void add(Scale s){
		this.scaleList.add(s);
	}
}
